class AlertRecord < ApplicationRecord
  belongs_to :alert_rule
  def self.ransackable_associations(auth_object = nil)
    ["alert_rule", "stock"]
  end

  def self.ransackable_attributes(auth_object = nil)
    ["alert_rule_id_id", "alert_time", "created_at", "current_price", "id", "level", "message", "status", "stock_id_id", "updated_at"]
  end
end
